<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Rabbit(name) {
        this.name = name;
      }
      Rabbit.prototype.sayHi = function () {
        console.log(this.name);
      };
      let rabbit = new Rabbit("Rabbit");
      rabbit.sayHi(); //Rabbit

      Rabbit.prototype.sayHi(); //undefined

      Object.getPrototypeOf(rabbit).sayHi(); //undefined

      rabbit.__proto__.sayHi(); //undefined
    </script>
  </body>
</html>
